const shareInit = (shareQuery) => {
  if (JSON.stringify(shareQuery) === '{}') {
    
  }else{
    if (shareQuery.type === "recruit") {
      wx.navigateTo({
        url: '../recruitInfo/recruitInfo',
        success: res => {
          res.eventChannel.emit('acceptDataFromOpenerPage', { eid: shareQuery.eid })
        }
      })
    } else if (shareQuery.type === "team") {
      //team组件本来就是main页面
      //main页面初始化调用了该js文件，会造成堆栈溢出
      // wx.navigateTo({
      //   url: '../main/main'
      // })
    }
  }
};

module.exports = {
  shareInit: shareInit
}